home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / prof / ds3100.md / profStack.s < prev    next >
Text File  |  1989-07-08  |  1KB  |  45 lines

  1. /* 
  2.  * profStack.s --
  3.  *
  4.  * Procedures for managing stack traces.
  5.  *
  6.  * Prof_ThisFP --
  7.  *    Return the frame pointer of our caller. Since the frame pointer is
  8.  *    not interesting to us on the SPUR, we return 0.
  9.  *
  10.  * Prof_CallerFP --
  11.  *    Return the frame pointer of our caller's caller. Since the frame 
  12.  *    pointer is not interesting to us on the SPUR, we return 1. This 
  13.  *    
  14.  *
  15.  * Prof_ThisPC --
  16.  *    Given a frame pointer, return the PC from which this
  17.  *    frame was called. This must be called with interrupts off!
  18.  *
  19.  * Copyright (C) 1989 Digital Equipment Corporation.
  20.  * Permission to use, copy, modify, and distribute this software and
  21.  * its documentation for any purpose and without fee is hereby granted,
  22.  * provided that the above copyright notice appears in all copies.  
  23.  * Digital Equipment Corporation makes no representations about the
  24.  * suitability of this software for any purpose.  It is provided "as is"
  25.  * without express or implied warranty.
  26.  *
  27.  *  $Header: profStack.s,v 1.2 89/06/29 10:16:41 mnelson Exp $ SPRITE (DECWRL)
  28.  */
  29.  
  30. #include "machConst.h"
  31. #include <regdef.h>
  32.  
  33.     .globl    _Prof_ThisFP
  34.     .globl    _Prof_CallerFP
  35.     .globl    _Prof_ThisPC
  36.  
  37. _Prof_ThisFP:
  38.     j    ra
  39.  
  40. _Prof_CallerFP:
  41.     j    ra
  42.  
  43. _Prof_ThisPC:
  44.     j    ra
  45.